
<?php
// originally taken from 
// from http://www.phpandstuff.com/articles/codeigniter-doctrine-scratch-day-3-user-signup-form
// http://www.dixieandtheninjas.net/dynasties3/zsignup_con
// this is 'signup_form.php' in the tutorial

?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Signup Form</title>
</head>
<body>

<div id="signup_form">

	<p class="heading">New User Signup</p>
        
        <?php echo form_open('testing/signup_form/submit'); ?>
        <!-- <form action="http://www.dixieandtheninjas.net/dynasties3/zsignup_con/submit" method="post">
            -->
            
         <?php echo validation_errors('<p class="error">','</p>'); ?>
            

        <p>
            <label for="firstname">First Name: </label>
            <?php echo form_input('firstname',set_value('firstname')); ?>
            
            <!--<input type="text" name="username" value="" />  -->
        </p>
        
        <p>
            <label for="lastname">Last Name: </label>
            <?php echo form_input('lastname',set_value('lastname')); ?>
            
            <!--<input type="text" name="username" value="" />  -->
        </p>
        
        
        <p>
            <label for = "password">Password: </label>
            <?php echo form_password('password'); ?>
            <!-- <input type="password" name="password" value="" /> -->
        </p>
        
        <p>
            <label for="passconf">Confirm Password: </label>
            <?php echo form_password('passconf'); ?>
            <!-- <input type="password" name="passconf" value="" /> -->
            
        </p>
        <p>
            <label for="email">E-mail: </label>
            <?php echo form_input('email',set_value('email')); ?>
            <!-- <input type="text" name="email" value="" /> -->
        </p>
        
        <p>
            <label for="website">Web Site: </label>
            <?php echo form_input('website',set_value('website')); ?>
            <!-- <input type="text" name="email" value="" /> -->
        </p>
        <p>
            <?php echo form_submit('submit','Create my account'); ?>
            <!-- <input type="submit" name="submit" value="Create my account" /> -->
        </p>
        <!--</form>-->
        
        <?php echo form_close(); ?>
</div>
    


</body>
</html>


